<?php 
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE');

$telphone=$_POST["telphone"];
$code=$_POST["code"];

$rand=mt_rand(0,1);

$arr=array("telphone"=>$telphone,"code"=>$code);


	$arr["ok"]=1;	

echo json_encode($arr);
?>